package www.yingdi365.com.model;

import java.io.Serializable;
import java.util.List;

public class AppMagazineTmplData implements Serializable {
    private List<PagesBean> pages;
    private List<?> animates;
    private List<?> leaves;

    public List<PagesBean> getPages() {
        return pages;
    }

    public void setPages(List<PagesBean> pages) {
        this.pages = pages;
    }

    public List<?> getAnimates() {
        return animates;
    }

    public void setAnimates(List<?> animates) {
        this.animates = animates;
    }

    public List<?> getLeaves() {
        return leaves;
    }

    public void setLeaves(List<?> leaves) {
        this.leaves = leaves;
    }

    public static class PagesBean implements Serializable {
        /**
         * name : page01
         * preview : http://img.yingdi365.com/mk/admin/magazine/201706290001/preview1.jpg
         * bgImage : http://img.yingdi365.com/mk/admin/magazine/201706290001/b10.jpg
         * bgColor :
         * bgResponse : false
         * items : [{"type":"picture","diy":true,"animate":{"name":null,"effect":"fadeInDown","delay":"0.5s","loop":"1","duration":"1.0s","timingFunction":"linear"},"id":"t10","text":{"content":null,"x":null,"xDirection":null,"y":null,"yDirection":null,"font":null,"fontSize":null,"width":null,"height":null,"color":null,"lineHeight":null,"characterSpacing":null,"direction":null},"picture":{"url":"http://img.yingdi365.com/mk/admin/magazine/201706290001/t10.jpg","x":0,"y":379,"width":640,"height":541,"vx":0,"vy":379,"vwidth":640,"vheight":541}}]
         */

        private String name;
        private String preview;
        private String bgImage;
        private String bgColor;
        private boolean bgResponse;
        private List<ItemsBean> items;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPreview() {
            return preview;
        }

        public void setPreview(String preview) {
            this.preview = preview;
        }

        public String getBgImage() {
            return bgImage;
        }

        public void setBgImage(String bgImage) {
            this.bgImage = bgImage;
        }

        public String getBgColor() {
            return bgColor;
        }

        public void setBgColor(String bgColor) {
            this.bgColor = bgColor;
        }

        public boolean isBgResponse() {
            return bgResponse;
        }

        public void setBgResponse(boolean bgResponse) {
            this.bgResponse = bgResponse;
        }

        public List<ItemsBean> getItems() {
            return items;
        }

        public void setItems(List<ItemsBean> items) {
            this.items = items;
        }

        public static class ItemsBean implements Serializable {
            /**
             * type : picture
             * diy : true
             * animate : {"name":null,"effect":"fadeInDown","delay":"0.5s","loop":"1","duration":"1.0s","timingFunction":"linear"}
             * id : t10
             * text : {"content":null,"x":null,"xDirection":null,"y":null,"yDirection":null,"font":null,"fontSize":null,"width":null,"height":null,"color":null,"lineHeight":null,"characterSpacing":null,"direction":null}
             * picture : {"url":"http://img.yingdi365.com/mk/admin/magazine/201706290001/t10.jpg","x":0,"y":379,"width":640,"height":541,"vx":0,"vy":379,"vwidth":640,"vheight":541}
             */

            private String type;
            private boolean diy;
            private AnimateBean animate;
            private String id;
            private TextBean text;
            private PictureBean picture;

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public boolean isDiy() {
                return diy;
            }

            public void setDiy(boolean diy) {
                this.diy = diy;
            }

            public AnimateBean getAnimate() {
                return animate;
            }

            public void setAnimate(AnimateBean animate) {
                this.animate = animate;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public TextBean getText() {
                return text;
            }

            public void setText(TextBean text) {
                this.text = text;
            }

            public PictureBean getPicture() {
                return picture;
            }

            public void setPicture(PictureBean picture) {
                this.picture = picture;
            }

            public static class AnimateBean implements Serializable {
                /**
                 * name : null
                 * effect : fadeInDown
                 * delay : 0.5s
                 * loop : 1
                 * duration : 1.0s
                 * timingFunction : linear
                 */

                private Object name;
                private String effect;
                private String delay;
                private String loop;
                private String duration;
                private String timingFunction;

                public Object getName() {
                    return name;
                }

                public void setName(Object name) {
                    this.name = name;
                }

                public String getEffect() {
                    return effect;
                }

                public void setEffect(String effect) {
                    this.effect = effect;
                }

                public String getDelay() {
                    return delay;
                }

                public void setDelay(String delay) {
                    this.delay = delay;
                }

                public String getLoop() {
                    return loop;
                }

                public void setLoop(String loop) {
                    this.loop = loop;
                }

                public String getDuration() {
                    return duration;
                }

                public void setDuration(String duration) {
                    this.duration = duration;
                }

                public String getTimingFunction() {
                    return timingFunction;
                }

                public void setTimingFunction(String timingFunction) {
                    this.timingFunction = timingFunction;
                }
            }

            public static class TextBean implements Serializable {
                /**
                 * content : null
                 * x : null
                 * xDirection : null
                 * y : null
                 * yDirection : null
                 * font : null
                 * fontSize : null
                 * width : null
                 * height : null
                 * color : null
                 * lineHeight : null
                 * characterSpacing : null
                 * direction : null
                 */

                private Object content;
                private Object x;
                private Object xDirection;
                private Object y;
                private Object yDirection;
                private Object font;
                private Object fontSize;
                private Object width;
                private Object height;
                private Object color;
                private Object lineHeight;
                private Object characterSpacing;
                private Object direction;

                public Object getContent() {
                    return content;
                }

                public void setContent(Object content) {
                    this.content = content;
                }

                public Object getX() {
                    return x;
                }

                public void setX(Object x) {
                    this.x = x;
                }

                public Object getXDirection() {
                    return xDirection;
                }

                public void setXDirection(Object xDirection) {
                    this.xDirection = xDirection;
                }

                public Object getY() {
                    return y;
                }

                public void setY(Object y) {
                    this.y = y;
                }

                public Object getYDirection() {
                    return yDirection;
                }

                public void setYDirection(Object yDirection) {
                    this.yDirection = yDirection;
                }

                public Object getFont() {
                    return font;
                }

                public void setFont(Object font) {
                    this.font = font;
                }

                public Object getFontSize() {
                    return fontSize;
                }

                public void setFontSize(Object fontSize) {
                    this.fontSize = fontSize;
                }

                public Object getWidth() {
                    return width;
                }

                public void setWidth(Object width) {
                    this.width = width;
                }

                public Object getHeight() {
                    return height;
                }

                public void setHeight(Object height) {
                    this.height = height;
                }

                public Object getColor() {
                    return color;
                }

                public void setColor(Object color) {
                    this.color = color;
                }

                public Object getLineHeight() {
                    return lineHeight;
                }

                public void setLineHeight(Object lineHeight) {
                    this.lineHeight = lineHeight;
                }

                public Object getCharacterSpacing() {
                    return characterSpacing;
                }

                public void setCharacterSpacing(Object characterSpacing) {
                    this.characterSpacing = characterSpacing;
                }

                public Object getDirection() {
                    return direction;
                }

                public void setDirection(Object direction) {
                    this.direction = direction;
                }
            }

            public static class PictureBean implements Serializable {
                /**
                 * url : http://img.yingdi365.com/mk/admin/magazine/201706290001/t10.jpg
                 * x : 0
                 * y : 379
                 * width : 640
                 * height : 541
                 * vx : 0
                 * vy : 379
                 * vwidth : 640
                 * vheight : 541
                 */

                private String url;
                private int x;
                private int y;
                private int width;
                private int height;
                private int vx;
                private int vy;
                private int vwidth;
                private int vheight;

                public String getUrl() {
                    return url;
                }

                public void setUrl(String url) {
                    this.url = url;
                }

                public int getX() {
                    return x;
                }

                public void setX(int x) {
                    this.x = x;
                }

                public int getY() {
                    return y;
                }

                public void setY(int y) {
                    this.y = y;
                }

                public int getWidth() {
                    return width;
                }

                public void setWidth(int width) {
                    this.width = width;
                }

                public int getHeight() {
                    return height;
                }

                public void setHeight(int height) {
                    this.height = height;
                }

                public int getVx() {
                    return vx;
                }

                public void setVx(int vx) {
                    this.vx = vx;
                }

                public int getVy() {
                    return vy;
                }

                public void setVy(int vy) {
                    this.vy = vy;
                }

                public int getVwidth() {
                    return vwidth;
                }

                public void setVwidth(int vwidth) {
                    this.vwidth = vwidth;
                }

                public int getVheight() {
                    return vheight;
                }

                public void setVheight(int vheight) {
                    this.vheight = vheight;
                }
            }
        }
    }
}